<?php
#!!!DBENGINE!!! MY - leave this comment here to let WDB demo switch between Oracle and MySQL
$wdbDir = realpath(__DIR__ . '/../../../../../'); // <- (demos/prekazky.cz/!/app/config/)
return array(
    'debug' => TRUE,
    //pre-configured database connections
    'connections' => array(  
        'default' => array( #!!!MY!!! - leave this comment here to let WDB demo switch between Oracle and MySQL
            'driver' => 'MySQL',
            'host' => '127.0.0.1',
            'user' => 'root',
            'password' => 'root',
            'schema' => 'prekazky',
            'port' => NULL,
            'loglevel' => WDB\Query\Log::LOG_ALL,
        ),
        'oci' => array(  #!!!OCI!!! - leave this comment here to let WDB demo switch between Oracle and MySQL
            'driver' => 'Oracle',
            'host' => '127.0.0.1',
            'user' => 'stucmi',
            'password' => 'stucmi',
            'port' => NULL,
            'ociService' => 'xe',
            'ociServerType' => '',
            'ociInstanceName' => '',
            'loglevel' => WDB\Query\Log::LOG_ALL,
        ),
        'log' => array(
            'driver' => 'MySQL',
            'host' => '127.0.0.1',
            'user' => 'root',
            'password' => 'root',
            'port' => NULL,
            'schema' => 'wdb',
        ),
    ),
    //directories
    //directory with read-write access, for cache etc.
    'datadir' => APP_DIR . '/../temp/wdb/',
    //directory with language files
    'langdir' => $wdbDir . DIRECTORY_SEPARATOR . 'lang' . DIRECTORY_SEPARATOR,
    //directory with webapi templates
    'templatesdir' => $wdbDir . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR,
    //directory with 3rd party library classes (for auto-loader)
    'libdir' => array(
        $wdbDir . DIRECTORY_SEPARATOR . '3rdparty' . DIRECTORY_SEPARATOR,
    ),
    //selected language identifier
    'lang' => 'cs',
    //user classes namespace or class prefix
    'userWrappersClassPrefix' => '\\WDB\\Wrapper\\User\\',
    'userWebUIClassPrefix' => '\\WDB\\WebUI\\User\\',
    //default record naming column identifier if no @nameColumn is present in table annotations
    'recordNameColumn' => 'name',
);